package ${basePackage}.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;


import javax.persistence.*;
import java.time.LocalDateTime;


@ApiModel(description = "${tableComment}")
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "${tableName}")
public class ${className} extends BaseEntity {


<#list fields as field>
    /**
    * ${field.comment}
    */
    @ApiModelProperty("${field.comment}")
    @Column(name = "${field.colName}")
    private ${field.type.javaType} ${field.name};

</#list>

}